home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG PD-ROM BV3
/
BMUG PD-ROM Version BV3 (CDRM1097900).iso
/
HyperCard
/
Education
/
Weights & Measures
/
card_3233.txt
< prev
next >
Wrap
Text File
|
1991-10-27
|
11KB
|
549 lines
-- card: 3233 from stack: in
-- bmap block id: 6384
-- flags: 4000
-- background id: 2785
-- name:
----- HyperTalk script -----
on calculate
global x
set lockscreen to true
put .304799999985 into c
put x/1000 into card field 1
put x into card field 2
put x*100 into card field 3
put x * 1000 into card field 4
put (x / c) /5280 into card field 5
put (x / c) /3 into card field 6
put (x / c) into ft
put ft into card field 7
put trunc(ft) into fta
put fta&"' " into item 1 of card field 8
set numberformat to "0.######"
put (ft- fta)*12 into ftb
put " "&ftb"e into item 2 of card field 8
put ft*12 into inch
put inch into card field 9
put trunc(inch) into incha
put incha"e&" " into item 1 of card field 10
set numberformat to "0"
put (inch- incha)*32 into inchb
put " "&inchb&" /32" into item 2 of card field 10
set numberformat to "0.######"
put x/(1.15156*5280*c)into card field 11
put x/299793052.4119 into card field 12
set lockscreen to false
end calculate
-- part 1 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=9 top=85 right=107 bottom=109
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Kilometers
----- HyperTalk script -----
on mouseUp
global x
ask "Enter Value"
put it * 1000 into x
calculate
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=8 top=142 right=164 bottom=108
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Meters
----- HyperTalk script -----
on mouseUp
global x
ask "Enter Value"
put it into x
calculate
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=9 top=106 right=126 bottom=109
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 4 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=8 top=163 right=181 bottom=108
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 5 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=8 top=199 right=221 bottom=108
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Centimeters
----- HyperTalk script -----
on mouseUp
global x
ask "Enter Value"
put it/100 into x
calculate
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=7 top=258 right=280 bottom=107
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Millimeters
----- HyperTalk script -----
on mouseUp
global x
ask "Enter Value"
put it/ 1000 into x
calculate
end mouseUp
-- part 7 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=8 top=220 right=240 bottom=108
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 8 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=7 top=279 right=299 bottom=107
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 9 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=177 top=106 right=126 bottom=277
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 10 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=179 top=165 right=185 bottom=279
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 11 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=137 top=223 right=243 bottom=237
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
--,foot,feet,ft,
-- part 12 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=236 top=223 right=243 bottom=362
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 13 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=137 top=279 right=299 bottom=237
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 15 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=177 top=85 right=107 bottom=277
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Miles
----- HyperTalk script -----
on mouseUp
global x
put .304799999985 into c
ask "Enter Value"
put it *c*5280 into x
calculate
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=179 top=144 right=166 bottom=279
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Yards
----- HyperTalk script -----
on mouseUp
global x
put .304799999985 into c
ask "Enter Value"
put it *c*3 into x
calculate
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=181 top=202 right=224 bottom=281
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Feet
----- HyperTalk script -----
on mouseUp
global x
put .304799999985 into c
ask "Enter Value in DECIMAL or in FT and IN (7' 11""e&")"
put it into entry
put offset("'",entry) into f
if f<> 0 then
put char 1 to f-1 of entry into ft
put char f+1 to length(entry)-1 of entry into ina
put value(ina) into inb
put ((inb/12)+ft)*c into x
else
put it *c into x
end if
calculate
end mouseUp
-- part 24 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=280 top=203 right=225 bottom=380
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
-- part 18 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=184 top=258 right=280 bottom=284
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Inches
----- HyperTalk script -----
on mouseUp
global x
put .304799999985 into c
ask "Enter Value in DECIMAL or FRACTION (4 3/8)"
put it into entry
put offset("/",entry) into d
put offset(space,entry) into s
if d<>0 or s <>0 then
if s=0 then
put char 1 to d-1 of entry into a
put char d+1 to length(entry) of entry into b
put (a/b)*(c/12) into x
else
put char 1 to s-1 of entry into g
put char s+1 to d-1 of entry into e
put char d+1 to length(entry) of entry into f
put ((e/f)+g)*(c/12) into x
end if
else
put it *c/12 into x
end if
calculate
end mouseUp
-- part 19 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=235 top=279 right=299 bottom=366
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 25 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=283 top=258 right=280 bottom=383
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 20 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=348 top=86 right=108 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Nautical Miles
----- HyperTalk script -----
on mouseUp
global x
put .304799999985 into c
ask "Enter Value"
put it *1.15156*c*5280 into x
calculate
end mouseUp
-- part 21 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=348 top=107 right=127 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 26 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=348 top=143 right=165 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Light-Second
----- HyperTalk script -----
on mouseUp
global x
ask "Enter Value"
put it * 299793052.4119 into x
calculate
end mouseUp
-- part 27 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=348 top=164 right=184 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for card part 3
----- text -----
1.609344
-- part contents for card part 4
----- text -----
1609.344
-- part contents for card part 7
----- text -----
160934.399992
-- part contents for card part 8
----- text -----
1609343.999921
-- part contents for card part 9
----- text -----
1
-- part contents for card part 10
----- text -----
1760
-- part contents for card part 11
----- text -----
5280
-- part contents for card part 12
----- text -----
5280' , 0"
-- part contents for card part 13
----- text -----
63360
-- part contents for card part 19
----- text -----
63360" , 0 /32
-- part contents for card part 21
----- text -----
0.868387
-- part contents for card part 27
----- text -----
0.000005
-- part contents for background part 5
----- text -----
1 --,kilometers,kilometer,klm,km,
2 --,meters,meter,metre,m,
3 --,cm,centimeter,centimeters,
4 --,mm,milimeter,millimeters,
5 --,mile,miles,mi,
6 --,yard,yards,yd,yr,
7 --,foot,feet,ft,
8
9 --,inch,inches,in,
10
11 --,nautical mile,nautical miles,nautical,nautical mi,nm,n m,n mi,
12 --,light-second,light second,light sec,light-sec,light s,light-s,